$def with (course, links)

<div class="list-group mb-3">
    $for sid, name in links:
        <a class="list-group-item list-group-item-action list-group-item-info" href="$get_homepath()/scoreboard/$course.get_id()/$sid"><i class="fa fa-trophy"></i> Scoreboard: $name</a>
</div>